package org.tao.lightningmq.client.consumer;

/**
 * @Author lht
 * @date 2025/1/19 - 19:28
 * @description:
 */
public class ConsumeResult {

    private ConsumeResultStatus status;

    public ConsumeResultStatus getStatus() {
        return status;
    }

    public static ConsumeResult success() {
        ConsumeResult consumeResult = new ConsumeResult();
        consumeResult.status = ConsumeResultStatus.CONSUME_SUCCESS;
        return consumeResult;
    }

    public static ConsumeResult later() {
        ConsumeResult consumeResult = new ConsumeResult();
        consumeResult.status = ConsumeResultStatus.CONSUME_LATER;
        return consumeResult;
    }

    public static enum ConsumeResultStatus {
        CONSUME_SUCCESS,
        CONSUME_LATER
        ;
    }

}
